package tyk;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import tyk.auto1.People;
import tyk.auto1.Student;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        ClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext("application.xml");
        Student student= (Student) context.getBean("student");
        System.out.println("6.可以使用bean对象了");
//        context.close();
        System.out.println("-------------------------");
        People people=context.getBean(People.class);
        System.out.println(people);
    }
}
